To solve this task, it is necessary to keep track of the opening and closing of each type of parentheses. Therefore, the variables tracking strategy would be more effective. So the answer is Variables tracking.