Number of Ones - CodeEval Challenge