The function getNewsletterList should return an alphabetically sorted single-dimensional array of newsletters for the given departments in departmentNamesList list. The newsletters for some departments are defined in the map named as departmentNewsletterList like this: