Oracle interview question

Merge Sort, Fifth maximum element, Design ATM Machine