I am trying to make a tree out of a sorted list so that I can search it later.
I have to return the index of the number if it is found else I retu