https://medium.com/@vikasalex1996/interview-question-how-to-check-for-balanced-parentheses-in-java-acec87c2e874