if we have already gotten the index of the required data does recursive call will be executed till base case or it will end right after we have returned the required index
here in this case we have returned si at reaching index 1 so will the recursive call would end at index 1 or it will further go till base case