Snagajob interview question

Mostly OOP