Cloudera interview question

remove duplicates from sorted array delete chars from strings to make them equal