ThoughtSpot Interview Question

Another program with 2D arrays but I did not really understand the question