Challenge Information

Title : Sparse or Not
Difficulty : Easy
Solutions : 8
Maximum Score : 50
Completed by You: No
Description :

There is an integer of a number given. You have to find whether it is sparse or not. A sparse number has no two or more consecutive binary bits set.

Write a function solve that have the following parameter(s):
1.) a = an integer

Example
Input:
a = 21
Output:
TRUE

Explanation
The binary representation of 21 is 10101 in which there are no consecutive 1's, therefore it is a sparse number.

Example
Input:
a = 67
Output:
FALSE

Explanation
The binary representation of 67 is 1000011 in which there are two consecutive 1's, therefore it's not a sparse number.

Constraints

Judocode