Write a function to check whether given number is armstrong number?
Login to Submit
Input: 407 Output: true Reason: 4^3 + 0^3 + 7^3 = 407