Check if binary representation of a number is palindrome
Given an integer x, determine whether its binary representation is a palindrome. Return true if it is a palindrome; otherwise, return false. Input: x = 9Output: trueExplanation: The binary representation of 9 is 1001, which is a palindrome.Input: x = 10Output: falseExplanation: The binary representa