Solve string dictionary and tree ordering | Bloomberg