Pearl of functional algorithm problem 1 is completed