Morningstar interview question

Reverse the query string and send array.