Larsen & Toubro Interview Question

regarding datastructures