Publicis Sapient interview question

About trees, SQL,Java and OOPs