I am trying to make the code myself in which i am checking the if there is only one element in the array and the element is equal to the search element then i return the index//base case . Anotherwise //recursively call made on the array of n-1.
// here is the code
// Guide me and give a gental approach to solve and build a logic recursive logic