Pregunta de entrevista de Amazon

oop question, design class for a tree which could represent the expression