Amazon Flex interview question

Stack Queue Agorithm Tree Search