Given a non-negative integer, determine if its binary representation is a palindrome. A binary palindrome means that when the binary representation of the number is read from left to right, it is the same as when read from right to left.
For example:
Input: 9
1001
True
.Input: 10
1010
False
.Input: 9
Output: True
Note: This problem is inspired by the creative spirit of problem-solving often celebrated on historical technical celebration days. Enjoy coding and happy problem-solving!
Below are language-specific starter code templates to help you begin your solution. You can pick the language of your choice.