Identical letters cannot be next to each other vertically or horizontally, but may be adjacent diagonally.
+---+---+---+---+---+ A | 2 | 1 | 2 | 1 | 0 | +---+---+---+---+---+ B | 0 | 2 | 0 | 2 | 2 | +---+---+---+---+---+ C | 1 | 0 | 2 | 2 | 2 | +---+---+---+---+---+ A B C D | 2 | 2 | 1 | 0 | 1 | +---+---+---+---++===+===+===+===+===+ | 1 | 2 | 2 | 0 || | | | | | +---+---+---+---++---+---+---+---+---+ | 1 | 1 | 2 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+ | 1 | 2 | 0 | 2 || | | | | | +---+---+---+---++---+---+---+---+---+ | 2 | 0 | 1 | 2 || | | | | | +---+---+---+---++---+---+---+---+---+ | 1 | 1 | 2 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+
From Mensa Puzzle Calendar 2019 by Fraser Simpson, Workman Publishing, New York. Puzzle for September 5.