結果 : higher order functions and closures 1 python hackerrank solution