Sorting of Array Depending on Frequency of Elements

Interview Question You are given any array of length n. You have to sort the array elements in descending order of their frequency. Use of Collections is not allowed E.g : Input : [4,3,1,6,4,3,6,4] Output : [4,4,4,3,3,6,6,1] Check out our website: http://www.telusko.com Follow Telusko on Twitter:   / navinreddy20   Follow on Facebook: Telusko :   / teluskolearnings   Navin Reddy :   / navintelusko   Follow Navin Reddy on Instagram:   / navinreddy20   Subscribe to our other channel: Navin Reddy :    / @navinreddy   Telusko Hindi :    / @teluskohindi