How did he deduce the dimensionality?

At 23:50 in the video , I don’t get the logic behind deriving the dimensionality of the array. How did you deduce arr[x] * arr[k+1] * arr[y]

arr[x] * arr[k+1] * arr[y+1]

@sushant19_99,
Its just basic maths, consider multiple matrices you are multiplying, obviously, the dimensions of resultant matrix will be (length of first matrix X breadth of last matrix).

If it still is unclear, refer here.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.