JAI interview question

Array based ,tree question like preorder from in order