String Permutations By Changing Case Leetcode Javascript 30