mappings_map) to store the mappings for quick lookups.mappings_map.s.sub to the substring of s starting at that position.sub, check if it matches the corresponding character in s or if there is a valid mapping.sub string is successfully matched, return true.false.