LedgerDocs interview question

Write bubble sort algorithm on paper.