Hey guys, so being new to the concept, I'm having quite a bit of trouble figuring out how I need to build this recursive method.

So basically I have four number. I need to take 4 randomly generated numbers and sort them so I can take the 3 highest and seperate them from the smallest number. Now there are a lot of solutions out there, but my stipulation causes them to not work. My professor will now allow us to use either loops or nested if statements in any of our functions for this project.

If I could get some guidance on this, I would greatly appreciate it.