Pregunta de entrevista de Gainsight

Quick sort code and questions about time complexity