Stash Interview Question

On site (virtual) Coding exam. Data structure heavy