Whenever you're ready, walk me through how you'd approach this.
How do you evaluate time and space complexity tradeoffs when solving an algorithmic problem? Walk through how you would choose between a slower low-memory approach and a faster higher-memory one.