Pergunta de entrevista da empresa Epic Games

Find the nth smallest element of an unsorted array.