Return number of set bits if int is palindrome. Question commented inside.