Arcadia.io Interview Question

A very basic data structure whiteboard coding problem