Funny String, is a HackerRank problem from Strings subdomain. In this post we will see how we can solve this challenge in Python

Problem Description

Suppose you have a String, , of length that is indexed from to . You also have some String, , that is the reverse of String . is funny if the condition is true for every character from to .

Note: For some String , denotes the ASCII value of the -indexed character in . The ab ....

You can find the full details of the problem Funny String at HackerRank

Solution: Please check the snippet for the solution.

This solution originally posted at: Github by @srgnk