結果 : write a program to check if two strings are balanced in python