It is better to insert the code as code easier to read.
The procedure is passed an array. Where the indexes corresponding to the codes of the symbols lies a certain number. Judging by the context of previously counted the number of these characters. Find the symbol with the minimum number of occurrences and form the output string message about this.
As the array of apparently, the initial min is selected so that any value in it is less than it.