NiCE Interview Question

Puzzel for ordering the min max device to sort an array of 4 element.