IIT interview question

technical