The frog prince

Sign in to test your solution.