Given two binary strings a
and b
, return their sum as a binary string.
Input: a = "11", b = "1" Output: "100"
Input: a = "1010", b = "1011" Output: "10101"
a
and b
consist only of '0' or '1' characters.Test Case 1
Input : a = "11", b = "1"
Expected Output : 100
Test Case 2
Input : a = "1010", b = "1011"
Expected Output : 10101