Infosys interview question

Regarding College Project