Appinventiv interview question

Class and solid principles mysql