Given an array of integers, sort the array according to frequency of elements
Givenanarrayofintegers,sortthearrayaccordingtofrequencyofelements.Forexample,iftheinputarrayis{2,3,2,4,5,12,2,3,3,3,12},thenmodifythearrayto{3,3,3,3,2,2,2,12,12,4,5}. Followingisdetailedalgorithm.1) C