I cant solve the problem using the currently taught sorting operations like bubble sort or selection sort. how to do this ques>

Please help and give easy code

hi @akshat1409 refer
refer this video https://youtu.be/m-8_yQao-lI