Epic Games Interview Question

Find the nth smallest element of an unsorted array.