Infosys Interview Question

basic c , data structure