Amazon Flex Interview Question

How to separate different boxes