Aon interview question

Simple OOPs concept, recursion and mysql queries