Worked with binary search recursion