https://practice.geeksforgeeks.org/problems/boolean-parenthesization/0