Amazon Online Assessment 2021 (OA) - Number Game

Practice on leetcode here: https://leetcode.com/problems/maximize-score-after-n-operations/

Solution