Parse a log file and return sorted occurrences of a given string | Hello Interview