Question d’entretien chez ChannelNet

How would you optimize this algorithm?