Parse a URL query string of the form key=value&key=value&... — no URL
decoding is required, and keys/values contain no '&' or '=' characters
(values may be empty).
A key may repeat. Collect each key's values in their order of appearance.
Input Format:
Line 1: the query string
Output Format:
One line per distinct key, sorted alphabetically by key:
key=value1,value2,... (values comma-joined in appearance order)