Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort both the arrays.
Construct the matching greedily.
Solve with full IDE support and test cases