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