Capgemini Engineering interview question

to write a program using structure.