Infosys Interview Question

simple data structures question basic