Sabre interview question

Given sorted dictionary find precedence characters