Capgemini interview question

Tress traversal, OOPS, Java basics