one dimensional four in a row

Sign in to test your solution.