Leetcode 3241. Time Taken to Mark All Nodes | Hello Interview