TalentPace interview question

Prime number Sort an array Replace string