Solution for the technical test given by Analogue