Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to use a set.
Otherwise, try to use a two-pointer approach.
Solve with full IDE support and test cases