makes namesOfRestaurantsViolations function for get only restaurant'name has violations