decryption

PythonF

String Reverse Decryption

Given an integer X and a string S (encrypted string) as input, the encryption algorithm is given below. – Iterate over all the divisors…