code and solution for the alien language problem