Parse a URL query string (without the leading ?) into an object.
?
solve('a=1&b=hello&c=') → { a: '1', b: 'hello', c: '' }
solve('a=1&b=hello&c=')
{ a: '1', b: 'hello', c: '' }
Decode URI components. Empty input returns {}. Skip empty pairs.
{}
Sample tests