Automotus interview question

OOPs design question for a given situation