And then you can just put that out, put into some output that right, and you can imagine that you go through this for each element in the array, and you may be thinking what that still quadratic time, isn't it because you're going through each element India rate, that's and elements and that you could be checking a stack that's up to N elements as well, so that's still and square.