Infosys Interview Question

Basic java and data structures