https://leetcode.com/problems/verifying-an-alien-dictionary/
The only difference was that the order was in a list.
Took me too much to arrive to the right solution so I think it's a rejected :(