Infosys interview question

c programs