Cses Problem Set On Leetcode 150