Divide the grid into tetrominoes so that no two tetrominoes of the same shape (including rotations/reflections) share an edge. The letters around the grid denote the tetrominoes that are second in the given row/column from the given side.
Notes:The name is a bit strange: "Tetrominoes Second View" would be better.