Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try "sorting" the array first.
Now find all indices in the array whose values are equal to target.
Solve with full IDE support and test cases