Ruby Array Exercises: Check whether there is a 2 in the array with a 3 some where later in a given array of integers
Write a Ruby program to check whether there is a 2 in the array with a 3 some where later in a given array of integers.

Ruby Code:
Output:
true true true false false
Flowchart:

Ruby Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a Ruby program to check whether a given array of integers contains two 6's next to each other, or there are two 6's separated by one element, such as {6, 2, 6}.
Next: Write a Ruby program to check whether the value 2 appears in a given array of integers exactly 2 times, and no 2's are next to each other.
What is the difficulty level of this exercise?