


The first line of input contains an integer ‘T’ representing the number of test cases. Then the test cases follow.
The first line of each testcase contains a single string ‘bin’.
For each test case, return a boolean value that is 'true' if the string is binary and 'false' if the string is not binary.
The output for each test case is printed on a separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 50
1 <= length(bin) <= 10^4
Where length(bin) is the length of the binary string.
Time Limit: 1 sec
From the above idea, we can devise the following approach:
From the above idea, we can devise the following approach: