fn find_in_order_index_sum(pairs: &Vec<(NestedList, NestedList)>) -> usize