Having an algorithm O(n^2)

https://ift.tt/2VezHu3