did hidden digits problem on CodeEval