Maximize tokens from nested crates | Airbnb Interview Question