pub fn part1(input: &[i32; 3]) -> i32
Build the minimum grid to the target then calculate the risk level.