Flip it !
Statement
Goal
You are given 2 char a and b and a value input as a Stringa is the opposite of b
Your Job is to flip all chars from the input to its given opposite value.
Input
a as String
b as String
input as String
b as String
input as String
Output
The input with all chars flipped to its given opposite
Constraints
a any ASCII char
b any ASCII char
input a String with 0<input.length <1024
b any ASCII char
input a String with 0<
Example
Input
1 0 001
Output
110
Game modes
Shortest, Reverse
Test cases
Test 1 Test
Input
1
0
001
Output
110
Validator 1 Validator
Input
0
1
000
Output
111
Test 2 Test
Input
r
*
r*r*r****rr**rr***
Output
*r*r*rrrr**rr**rrr
Validator 2 Validator
Input
A
1
A11A1AA1
Output
1AA1A11A
Test 3 Test
Input
$
%
$%%%%$$$%%
Output
%$$$$%%%$$
Validator 3 Validator
Input
(
-
(---(-(-(((---
Output
-(((-(-(---(((
Test 4 Test
Input
'
Output
'
Validator 4 Validator
Input
|
Output
|
Test 5 Test
Input
x
=
x=x=xxxxxx======xxxxxxxxxxxx======xx=x==x====xxxx===x===x==x=x=xxxx===x===x=xxxxxxxx=========xxxxxxxxxx==x=x=x====x=x==x=xx=====xxxxxxxxx=x=xxxxxx======xxxxxxxxxxxx======xx=x==x====xxxx===x===x==x=x=xxxxxxxx======xx=x==x====xxxx===x===x==x=x=xxxx===x===x=xxxxxxxx=========xxxxxxxxxx==x=x=x====x=x==x=xx=====xxxxxxxxx=x=xxxxxx======xxxxxxxxxxxx======xx=x==x====xxxx===x===x==x=x=xxxx===x===x=xxxxxxxx=========xxxxxxxxxx==x=x=x====x=x==x=xxx=x=xxxxxx======xxxxxxxxxxxx======xx=x==x====xxxx===x===x==x=x=xxxx===x===x=xxxxxxxx=========xxxxxxxxxx==x=x=x====x=x==x=xxx=x=xxxxxx====xxxxxxxx======
Output
=x=x======xxxxxx============xxxxxx==x=xx=xxxx====xxx=xxx=xx=x=x====xxx=xxx=x========xxxxxxxxx==========xx=x=x=xxxx=x=xx=x==xxxxx=========x=x======xxxxxx============xxxxxx==x=xx=xxxx====xxx=xxx=xx=x=x========xxxxxx==x=xx=xxxx====xxx=xxx=xx=x=x====xxx=xxx=x========xxxxxxxxx==========xx=x=x=xxxx=x=xx=x==xxxxx=========x=x======xxxxxx============xxxxxx==x=xx=xxxx====xxx=xxx=xx=x=x====xxx=xxx=x========xxxxxxxxx==========xx=x=x=xxxx=x=xx=x===x=x======xxxxxx============xxxxxx==x=xx=xxxx====xxx=xxx=xx=x=x====xxx=xxx=x========xxxxxxxxx==========xx=x=x=xxxx=x=xx=x===x=x======xxxx========xxxxxx
Validator 5 Validator
Input
*
<
******<<<<*<<<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<<<<<**<*<********<***<*<*<<<<<<******<<<<*<<<**<<<<*<<<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<<<<<**<*<********<***<*<*<<<<<<******<<<<*<<<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<<<<<**<*<********<***<*<*<<<<<<**<<<<*<<<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<**<<<<*<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<<<<<**<*<********<***<*<*<<<<<<**<<<<*<<<<<**<<<<<<<<<**<<<<<<<<<<<**<*<*<*<*<****<<<<**<**<<<<<**<<<<*<<<<<**<<<<<<<<<**<
Output
<<<<<<****<*****<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*********<<*<*<<<<<<<<*<<<*<*<******<<<<<<****<***<<****<*****<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*********<<*<*<<<<<<<<*<<<*<*<******<<<<<<****<*****<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*********<<*<*<<<<<<<<*<<<*<*<******<<****<*****<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*****<<****<***<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*********<<*<*<<<<<<<<*<<<*<*<******<<****<*****<<*********<<***********<<*<*<*<*<*<<<<****<<*<<*****<<****<*****<<*********<<*
Solution language
Solution
Stub generator input