HackerRank Day 9: Binary Calculator problem solution - TheCScience