Infosys interview question

Easy .. prepare basics , coding questions