Capgemini Interview Question

stack program and done