Update GetIndexAfterSorting.cpp