Pergunta de entrevista da empresa Unthinkable

Interview- Bubble sort, basic puzzle from gfg