Domanda di colloquio di TikTok

Giving 4 pseudocode and asking which one represents which type of sorting algorithm