Complete leetcode 2120.