Hello Alfred interview question

High level OO design question