1) If starting element is E then 4,

If any other starting element then 3.

2) In 3d array, to perform CMO,

first you have to traverse 19 positions of outer level, => 19*30*40

then perform CMO as usual on inner 2d array, => 29*30 + 19

Hence total answer is => **10 + 19*30*40 + 29*30 + 19**