Infosys interview question

They basically check for your analytical and logical thinking