Infosys Interview Question

a simple program with armstrong number