Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the cell <code>(i, j)</code> in which the element is present.
You can store the coordinates for each value.
Solve with full IDE support and test cases