1 test is not passing. Kindly check

hello @igarg145
image

dont erase from vector because this will change indexing of remaining elements in the vector.

simply sort the vector using comparator and then print the required output.