Amazon Robotics Interview Question

How to arrange a cupboard inside the kitchen based on simple logic.