J.P. Morgan Interview Question

Write a C program ...