Open in TheBrain

Best Case: O(n)