Tree using inorder and preorder

how to print in this format
2 => 1 <= END
3 => 2 <= END
END => 3 <= END

@ayu2321 here refer to the print function in it


dont forget to hit like and mark resolved if cleared :smiley: