Kumaran Systems Interview Question

Asked to write a code for 5-6 questions