Ad
  • Default User Avatar

    Sorry for the late reply, I was failing to see the random tests, but I took your advice and logged the test strings, and I managed to solve the problem. Thanks alot.

  • Default User Avatar

    The random cases are not clearly described its hard to optimize the answer.