Domanda di colloquio di IBM

Write a program in c/c++/java by giving a question