You are given an n by n ( square ) grid of characters, for example:
```python
[['m', 'y', 'e'], 
 ['x', 'a', 'm'], 
 ['p', 'l', 'e']]
```
You are also given a list of integers as input, for example:
```python
[1, 3, 5, 8]
```
You have to find the characters in these indexes of the grid if you think of the indexes as:
```python
[[1, 2, 3], 
 [4, 5, 6], 
 [7, 8, 9]]
```
Remember that the indexes start from one and not zero.
Then you output a string like this:
```python
"meal"
```
All inputs will be valid.
def grid_index(grid, indexes):
    flat = tuple(x for e in grid for x in e)
    return ''.join(flat[e-1] for e in indexes)
def grid_index(grid, indexes):
    flat = tuple(x for e in grid for x in e)
    return ''.join(flat[e-1] for e in indexes)