//Given a string containing only the characters x and y, find whether there are the same number of xs and ys.
import UIKit func perfectlyBalanced (str:String