Allstate interview question

Basic sorting algorithm in Java using comparator.