Here, the text name is hidden inside the tags h1 and b.
Help Charlie in listing all the links and the text name of the links.
The first line contains the number of lines in the fragment (N). This is followed by N lines from a valid HTML document or fragment.
N < 100
Number of characters in the test fragments <= 10000 characters.
Characters will be restricted to ASCII. Fragments for the tests will be picked up from Wikipedia.
Also, some tests might not have text or names on the links.
If there are M links in the document, display each of them in a new line. The link and the text name must be separated by a "," (comma) with no spaces between them.
Strip out any extra spaces at the start and end position of both the link and the text name before printing.