I am here with you with a problem. I took the idea of this problem from a problem posted in geeksforgeeks : http://www.geeksforgeeks.org/check-if-a-given-number-is-fancy
A number is a special 180 degree palindrome if upon rotating it 180 degrees we get the same number back.
For example : 0, 1, 8, 96, 69, 906, 901106, 68089 are such numbers and 2,929,926,99,66,6,9 are not such special 180 degree palindrome numbers.
Please find below my solution in Java for this problem.