Cubic interview question

BA knowledge