Premium problem110. Locate Elements Matching a Condition

Easy Locked

Return the coordinates (row, col) of every element of 2-D array X that is divisible by 3.

Input

[[1 3 5]
 [6 8 9]]

Output

[[0 1]
 [1 0]
 [1 2]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)