Company: Flexport_26nov
Difficulty: medium
REST API: Highest International Students Problem Description A snapshot of a global university database is given to you as a list of records on standard input. Each record describes one university: its name, its 2022 QS ranking information, and where it is located. You are given two city names, firstCity and secondCity . Among the universities located in firstCity , report the name of the one with the highest number of international students. If no university in the input is located in firstCity , report the name of the university with the highest number of international students in secondCity instead. City names are compared without regard to letter case : the query singapore matches a university whose city is Singapore . The comparison is otherwise exact -- New Delhi and NewDelhi are different cities, and so are New Delhi and New Delhi Cantonment . A city counts as having a university as soon as one record is located there, even if its number of international students is 0 . If sever