3313: Find the Last Marked Nodes in Tree

Problem Statement