has12: a 1 with a 2 somewhere later?

Given an array of ints, return true if there is a 1 in the array with a 2 somewhere later in the array. Step through has12: the flag has1 remembers whether a 1 has shown up yet, so a 2 only counts if it comes after one.