Thales interview question

Anagram, whether a number is binary or not