Rosetta Problems

Higher order function

https://kep.uz/practice/problems/problem/972