Indeed interview question

1D and 2D array questions