Robinhood Interview Question

Something about 2 dimensions array