Sankey Solutions interview question

oop concepts