SmartCube interview question

Guesstimates