ctci4 - add c1.3 (remove duplicate from string)