isolate

CF

Isolate Interlaced Strings

Two string values S1 and S2 are interlaced and passed as a single input string S. Given L1 which is the length of S1, print S1 and S2 as the…