[LC] Better solution for search for a range.