Tata interview question

introduce