IBM Interview Question

Write a sample code in C programming