IBM interview question

code in c algorithm and data