Infosys Interview Question

introduction, data structures and algorithms question