my solutions for Code Eval - Easy question