Function part1

Source
pub fn part1(input: &[(bool, i32)]) -> i32