Company: Oracle_7oct
Difficulty: medium
REST API: Max Profit Event Problem Description Given the name of an event organizer, identify the event that generates the highest profit if it sells out completely. Use the events database available at the endpoint: https://jsonmock.hackerrank.com/api/events . The results are paginated and can be accessed by adding &page=(num) to the query string, where (num) denotes the page number. To filter the query by specific fields, append (fieldname)=(value) to the URL. For instance, https://jsonmock.hackerrank.com/api/events?organized_by=anorganizer&page=2 will return page 2 of the events organized by the organizer named anorganizer . The query response from the API includes 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 in the data field includes the following: name : the name of the e