IBM Interview Question

Solve a programming question/Write a program