In Time Tec Interview Question

Array manipulation, sorting