[Codeforces Round #445][Codeforces 886D]Restoration of string

[Codeforces Round #445][Codeforces 886E]Maximum Element