Infoway interview question

C language