Infosys interview question

a simple program with armstrong number