HACKERRANK - Ones and Twos

https://www.hackerrank.com/contests/mar14/challenges/ones-and-twos
little update, but not success