search for a range leetcode