Take the following as input.
A number
Write a function which returns true if the number is an armstrong number and false otherwise, where armstrong number is defined as follows
371 is an Armstrong number as 371 = 3^3 + 7^3 + 1^3
Print the value returned.