Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of nums[i] modulo k.
Iterate over nums in sorted order.
Solve with full IDE support and test cases