Company: Agoda_15dec
Difficulty: medium
Fetch TV Show Information Problem Description A catalogue of TV series is given to you as a list of records on standard input. Each record carries the name of a series and the years it was in production. Given a start year startYear and an end year endYear , return the names of all the series that started production in startYear or later and ended production in endYear or earlier. If endYear is -1 , return instead the series that started in startYear or later and are still in production . The names must be printed in ascending order. Record fields name : the name of the series (string, may contain spaces, never contains | ) runtime_of_series : the years the series was in production (string) The runtime_of_series field There are three shapes: (2020-2021) -- the first and the last year of production are both given. (2020- ) -- the series is still in production. (2020) -- the series was produced in one year only, so it started and ended in that year. A record may additionally carry a (I)