fn validate_update( update: &Vec<u32>, rules: &HashMap<u32, HashSet<u32>>, ) -> bool
For a given Update, check for each page that a page already in the update list does not need to come after the current page.
Update