pre4: everything before the first 4

Given a non-empty array of ints, return a new array containing the elements that come before the first 4. The array will contain at least one 4. Step through pre4: a while loop walks forward until it finds a 4 — and since first4 starts at 0, where it stops is also how many numbers come before it.