Question

Write a function to check whether given number is binary?

Login to Submit

Examples

Input: 101
Output: true
Reason: Because the number only contains 1 and 0s.

Input: 234
Output: false