ServiceNow Interview Question

Basic sorting algorithms.