The main function then passes the returned row number n and the 2D-array to a function distinctRowElements that returns a ID-array which contains the distinct elements Of row n Of the 2D-array together with the number of distinct elements in that row. The main function finally displays the returned array of distinct elements.
Your program must use appropriate loops.
The array reading must be done in the main and not in another function.
The function must not contain calls to VO functions.