Amplifinity interview question

design pattern