替换字符可以得到的最晚时间 https://leetcode.cn/problems/latest-time-you-can-obtain-after-replacing-characters/description/