Samsara interview question

Given a string with markdown, convert it to HTML. You can find the whole question on Leetcode.