Kattis.com - Reversed Binary Numbers