Sorting methods written in Java for coding interview practice.