The solution using the contains() method does not pass the verification of points 3 and 4. The contains() method probably uses break and continue statements.