Write the definition of a subprogram maxAparitii with four parameters:
v-- a one-dimensional array with at most100components, containing integersn-- a non-zero natural number representing the number of elements used fromvmx-- a parameter passed by reference, in which the subprogram returns the maximum value among the firstncomponents of the arraycnt-- a parameter passed by reference, in which the subprogram returns the number of occurrences of the maximum value in the firstncomponents of the array
Then write a main program that reads from standard input a non-zero natural number n and then n integers separated by spaces or newlines, calls the subprogram maxAparitii on the read array, and prints to standard output, on a single line, the maximum value and its number of occurrences, separated by a space.