JAI Interview Question

coding on trees