LeetCode
Verifying an Alien Dictionary
Click
here
for an explanation.