Codeforces Round Div. 2 D Letter Exchange 1786D