Leetcode 2836. Maximize Value of Function in a Ball Passing Game | Hello Interview