Sort Array by Increasing Frequency
This is the code that I have done but as I\'m getting some problem in following the structure of comparable, I\'m unable to follow