IBM Interview Question

code in c algorithm and data