Finoit Interview Question

besic data structure quistion