ICICI Direct interview question

Inputs from internship