hCentive interview question

sorting algorithms string manipulation