Add a fail solution which is O(N2)