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