Infosys interview question

basic c , data structure