Infosys interview question

keep the aptituteformulae on tip .