Wells Fargo interview question

Use comparable and comparator