u2i Interview Question

Writing a function to process html syntax