If starting point of next range is greater than the ending point of previous range then store next range in merged [ ] .
if curr . s > prev . e : NEW_LINE INDENT merged . append ( curr ) NEW_LINE DEDENT