https://leetcode-cn.com/contest/season/2022-spring/problems/UEcfPD/