CodeEval challenge number 147