HuntingCube interview question

Introduction