General Mills interview question

I was asked to write the code for quick sort, recursion factorial, basic array