Balanced Delimiter Problem