input: Write a python function to extract and print the given title and resolved URL of each post from the `pocket_posts` dictionary.
  assert extract_titles_urls({"123": {"given_title": "Title1", "resolved_url": "http://example.com/1"}, "456": {"given_title": "Title2", "resolved_url": "http://example.com/2"}}) == {"123": {"title": "Title1", "url": "http://example.com/1"}, "456": {"title": "Title2", "url": "http://example.com/2"}}
  assert extract_titles_urls({"789": {"given_title": "Title3", "resolved_url": "http://example.com/3"}}) == {"789": {"title": "Title3", "url": "http://example.com/3"}}
output: def extract_titles_urls(pocket_posts):
      result = {}
      for key, value in pocket_posts.items():
          result[key] = {
              "title": value["given_title"],
              "url": value["resolved_url"]
          }
      return result