Wave interview question

Class design question