Button interview question

High-level system design