Company: Oracle_7oct
Difficulty: medium
REST API: Max Profit Event Problem Description Given the name of an event organizer, find the single event of theirs that would bring in the highest profit if every ticket for it were sold. Query the events database at the endpoint: https://jsonmock.hackerrank.com/api/events . Results come back paginated; fetch further pages by appending &page=(num) to the query string, where (num) is the page you want. To restrict the query to matching records, append (fieldname)=(value) to the URL. For example, https://jsonmock.hackerrank.com/api/events?organized_by=anorganizer&page=2 returns page 2 of the events run by the organizer named anorganizer . Each API response carries these fields: page : the current page per_page : the maximum results per page total : the total number of records total_pages : the total number of pages for the query results data : an array of JSON objects containing event information Each object inside data carries: name : the name of the event organized_by : the o