Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
Can we use a brute force solution with nested loops and HashSet?