pub fn part1(input: &[Input]) -> i32
The example uses y=10 but the real data uses y=2000000, so break out the logic into a separate function to enable integration testing.