Domanda di colloquio di Learning Heroes

I was asked to solve an image optimisation problem