Function part2

Source
pub fn part2(input: &[(bool, u32)]) -> u32