IPSY interview question

Array sorting code using external sort parameters