Identical letters cannot be next to each other vertically or horizontally, but may be adjacent diagonally.
+---+---+---+---+---+ A | 2 | 1 | 1 | 0 | 1 | +---+---+---+---+---+ B | 1 | 2 | 0 | 1 | 2 | +---+---+---+---+---+ C | 1 | 0 | 3 | 2 | 2 | +---+---+---+---+---+ A B C D | 1 | 2 | 1 | 2 | 0 | +---+---+---+---++===+===+===+===+===+ | 0 | 1 | 2 | 2 || | | | | | +---+---+---+---++---+---+---+---+---+ | 2 | 1 | 1 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+ | 2 | 0 | 2 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+ | 1 | 2 | 1 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+ | 0 | 2 | 2 | 1 || | | | | | +---+---+---+---++---+---+---+---+---+
From Mensa Puzzle Calendar 2016 by Mark Danna and Fraser Simpson, Workman Publishing, New York. ; puzzle for December 8.