title: How to check if number is bit palindrome or not
body: <p>I have to write a code to check if the number is bit palindrome. e.g. 9(1001) is bit palindrome but 6(110) is not a bit palindrome.</p>
  
  <p>I have written the code to convert the number into a string which represents that numbers in binary and then checked for string palindrome. Is there any better way to do this?  </p>