The solution of the coding problem from the website: https://exercism.org/tracks/scala/exercises/matching-brackets
Given a string containing brackets [], braces {}, parentheses (), or any combination thereof, verify that any and all pairs are matched and nested correctly.