IIT Madras interview question

research problem and solution for that