Given the input author-book tuples, map-reduce program procudes a JSON object which contains all the books from only the queried author in a JSON array