def minReplacements(original, palindrome, m, n):
     
    if (m == 0 or n == 0):
        return 0

     
    if (original[m-1] == palindrome[n-1]):
        return minReplacements(origininal, palindrome, m-1, n-1)

     
    return 1 + minReplacements(origininal, palindrome, m-1, n-1)