CodeEval challenge number 018