Infosys interview question

Intermediate JAVA coding queries related to DATA structures and algorithm