Pregunta de entrevista de Unthinkable

Interview- Bubble sort, basic puzzle from gfg