Citi Interview Question

pseudo code for bubble sort