Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

You are given a grid of lowercase English letters arranged in 6 rows and 5 columns as follows:

  0 1 2 3 4
0 a b c d e
1 f g h i j
2 k l m n o
3 p q r s t
4 u v w x y
5 z

Each letter corresponds to a unique position in the grid, with 'a' at the top-left corner (0,0). And the grid does not fully populate the last row, only the letter 'z' is present there.

Test Cases
Input
Output
Expected