Orange interview question

DS: wave array, stack implementation, merge sort