Capgemini Engineering Interview Question

Write a program to check if the number is armstrong