MediBuddy interview question

Sorting algorithms and design patterns