I have written the program which takes integer and string inputs, and removes duplicate and print it if given number is armstrong, but my program is giving wrong output.