Function to check if it is possible to make two binary strings equal by given operations
function isBinaryStringsEqual ( list1 , list2 ) { var str1 = list1 . split ( " " ) ; var str2 = list2 . split ( " " ) ;