Infosys interview question

simple data structures question basic