Fidelity Investments interview question

Few C programs since i was from ECE background