Pinterest interview question

Find all valid moves in the grid?