HACKERRANK - Ones and Twos

:-(