hackerrank problem to extract html tags