Infer an Unknown Alphabet Order | Meta Interview Question