input: Write a python function to handle different contact actions like add, delete, and update.
  assert handle_contact_action('add', {'name': 'John', 'phone': '12345'}) == 'Contact added'
  assert handle_contact_action('delete', {'name': 'John'}) == 'Contact deleted'
  assert handle_contact_action('update', {'name': 'John', 'phone': '67890'}) == 'Contact updated'
output: def handle_contact_action(action, contact):
      contacts = {}
      
      if action == 'add':
          contacts[contact['name']] = contact['phone']
          return 'Contact added'
      elif action == 'delete':
          if contact['name'] in contacts:
              del contacts[contact['name']]
              return 'Contact deleted'
          else:
              return 'Contact not found'
      elif action == 'update':
          if contact['name'] in contacts:
              contacts[contact['name']] = contact['phone']
              return 'Contact updated'
          else:
              return 'Contact not found'
      else:
          return 'Invalid action'