Interrupted Bubble Sort challenge - CodeEval