Infosys interview question

Tricky technical questions not very difficult though