Do we need to solve for nested tags within nested tags? Please let me know if you thought of a simpler way to go about the solution.