Sponsored
Use these hints if you're stuck. Try solving on your own first.
Check 8 directions around the King.
Find the nearest queen in each direction.
Solve with full IDE support and test cases