Infosys interview question

Core java programming, basic algorithms.