solved watermelon in codeforces