Thales Interview Question

2d array complexities of ds 2d array implementation and working