Finoit interview question

besic data structure quistion