Domanda di colloquio di Codegenio

Detect patterns in arrays and design algorithm to sort them accordingly.