Interrupted Bubble Sort moderate challenge solved in java