Accenture interview question

Write a 'C' program to perform a certain task