Capgemini interview question

write a program using paper and pen ?????