結果 : write a user defined function in python named puzzle