pub fn part1(input: &[i32]) -> i32
Converts between the 0-based indexing produced by the parse function and the 1-based indexing used by the problem statement.
parse