Time complexity of creating tree from inorder and preorder

Sir/Mam what is the time complexity of the program creating tree from inorder and preorder

hi @Shivk you can refer to this article for various methods and their time complexities.