I did Cisco OA. Two questions are similiar to this one.
https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes/ https://leetcode.com/problems/maximum-number-of-points-with-cost/