Amplify Life Center validates message templates before they are published. Given a required string and a candidate string, determine whether the candidate contains every character from the required string, including repeated characters.
Characters are case-sensitive, and spaces and punctuation must be treated as ordinary characters. The order of characters does not matter, and extra characters in the candidate string are allowed.
Implement contains_all_characters(required, candidate).
required and candidate.True if candidate contains each character in required at least as many times as it appears in required; otherwise, return False.def contains_all_characters(required, candidate):