Pinterest interview question

2D array and 3D array question. Hashmaps.