HackerRank Day 10: Binary Numbers problem solution - TheCScience