LeetCode Solution, Easy, 1873. Calculate Special Bonus