Jack in the Box Interview Question

Easy and fast to get it done!