Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think of when it is impossible to convert the string to the target.
If exactly one of the strings is having all 0’s, then it is impossible. And it is possible in all other cases. Why is that true?