Company: Oracle_7oct
Difficulty: medium
Best Food Outlet Problem Description You need to retrieve information about restaurants from an API. The task involves querying a database of restaurant information using HTTP GET requests to find the restaurant with the highest rating within a specified cost constraint. The API endpoint is: https://jsonmock.hackerrank.com/api/food_outlets?city=<city> (replace <city> ). The response is paginated and can be accessed by appending &page=<num> to the query string (replace <num> ). Each response contains: page : Current page number per_page : Maximum results per page total : Total number of results total_pages : Total number of pages data : Array of food outlet records Each food outlet record includes: id : Outlet ID name : Outlet name city : Location city estimated_cost : Estimated food cost user_rating : Object containing average_rating and votes Given a city and a maximum cost, find the food outlet in that city with the highest rating whose estimated_cost is a