Adevinta interview question

Class vs Functional programming