Scenario
In a client application, there is a table where users can select specific rows. Each row is identified by an ID which needs to be included in the URL for editing purposes. The process of creating this string occurs every time a row is selected or deselected.
Objective
The aim is to prevent the URL's query string from exceeding its maximum length by condensing ranges of numbers into a comma-separated string and passing the shortest query string possible. [5, 7, 8, 9, 77, 288] would become "5:9,77,288"