Pergunta de entrevista da empresa NVIDIA

There is a component that receives two input numbers and outputs them sorted as max and min. Using this component, we were asked to design a system that sorts four input numbers. In the second part, we had to sort six input numbers using the 4-number sorting component together with the 2-number sorting component.