Infosys interview question

Core java, Datastructures