D. Colored Rectangles(dp)

NoSuchKey