O(n2) soln getting accepted


#1

Comment body goes here.