Solving Kattis Problems (4)