Whenever you're ready, walk me through how you'd approach this.
Tell me about how you would solve a factorial problem and a Top-K frequent elements problem, including any edge cases you consider.