0
/ 1.0
Return the index of the first four in an array. Return -1 if there are none.
Return the index of the first four in an array. Return -1 if there are none.
Examples:
findFour({4,1,4,0,0,0,2,4,4,1,4}) -> 0
findFour({0,1,4,0,0,0,2,4,4,1,4}) -> 2
findFour({}) -> -1
Your feedback will appear here when you check your answer.