Pergunta de entrevista da empresa C.H. Robinson

Sort a list by ranking. Reverse a string and compare