Pregunta de entrevista de Allstate

Basic sorting algorithm in Java using comparator.