Coinbase interview question

How to design a common component?