Tech Mahindra Interview Question

Write a simple program to check if a number is an Armstrong number.