Find Longest Consecutive Substring Function In Oracle