HackerRank Tag Content Extractor in java problem solution - TheCScience