ESTsoft interview question

why did you use this algorithm?