Big Viking Games Interview Question

I was asked to write a bubble sort algorithm