pub fn part2(input: &[usize]) -> u32
Map each index to a (different) score using a second small precomputed lookup table.