Block interview question

A basic class design question