Ringkasan Tantangan
Given an array of integers representing the price of different laptops, and an integer representing your budget, return:
Given an array of integers representing the price of different laptops, and an integer representing your budget, return:
- The second most expensive laptop if it is within your budget, or
- The most expensive laptop that is within your budget, or
0 if no laptops are within your budget.
- Duplicate prices should be ignored.