checking wether the given number is a armstrong number