Coinbase interview question

Class design question, Not as much leetcode/dsa.