Table with Letters - 2

CodeForces - 253D