Pinterest Interview Question

Find all valid moves in the grid?