Infosys Interview Question

Difficult questions in C