Company: Murf ai_22oct
Difficulty: medium
Max Profit Event Problem Given the name of an event organizer, find the event organised by that person which would generate the highest profit if it sold out completely. In the original assessment the event database is reached with HTTP GET requests to https://jsonmock.hackerrank.com/api/events?organized_by=<organizer> (replace <organizer> ). The results are paginated and further pages are read by appending &page=<num> to the query string. The API response contains these fields: page : the current page per_page : the maximum number of results per page total : the total number of records total_pages : the total number of pages for the query data : an array of event records Each record in data contains: name : the name of the event organized_by : the organizer of the event ticket_prices : an array of 3 integers — the prices of the normal, premium and VIP ticket, in that order capacity_left : the number of seats still available for the event people_registered : the n