KPIT Technologies interview question

more technically challenging questions than my experience