MIT interview question

many many