Pergunta de entrevista da empresa Bloomberg

I was not very confident to implement a sorting algorithm, so I just write a bubble sort.