Refact.ai Match 1 (Codeforces Round 985) - Solution Discussion