Codeforces strings related problems.