code: def is_char_in_pairs(pos_char, pairs):
          
          for pos_left, pos_right in pairs.items():
              if pos_left < pos_char < pos_right:
                  return True
  
          return False
docs: Return True if the charactor is in pairs of brackets or quotes.