WeMesh interview question

Generate a query string using key-value pairs.