This program finds the number of distinct values in an array of integers. It has a time complexity of O(N*log(N)), or O(N), depending on which class is used for obtaining the result.