Super Reduced String

Problem Statement

Refer to the problem statement given @ Hackerrank Super Reduced String

Code

This problem is solved through Recursion but I will be working on a better solution soon. However this code pass all the…