Pregunta de entrevista de Applied Intuition

Sorting based coding algorithm problem related to AV stack