Frequency Stack with Recency Tie-Breaking
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Implement a frequency stack whose pop operation returns the most frequent value and breaks frequency ties by recency.