• + 0 comments

    it stores the frequency of occuring of different elements at the respective indices and we start finding out the maximum number of times a number has repeated and use that index to print the number