Thales Interview Question

Anagram, whether a number is binary or not