Big Viking Games interview question

I was asked to write a bubble sort algorithm