Kikoff Interview Question

Alien dictionary problem from leetcode