SmartAsset interview question

Object Oriented Design question, Coding round (look through Leetcode medium)