Wave interview question

General class design question