Code Board Tech interview question

The second program he asked was: Write a program to find the given number is binary or not Input:101 Output:true