Infosys interview question

DSA (basic - mid) Java (OOPS)