Infosys interview question

Data structures Writing code according to some scenario.