関数(問題演習) https://ganbaru-man.com/exercise-function/?amp=1