Company: Tridence_8aug
Difficulty: medium
Enigma function Problem Description Enigma is a function that takes 3 inputs, X , i , and j , and produces a single output K . Modulo of the Enigma function (for every value of i and j ) is calculated by the following formula: K = Enigma(X, i, j) % mod The Enigma(X, i, j) function is defined as: { X if i == 0 or j == 0 { { sum_{p=0}^{j} Enigma(X, i-1, p) % mod Otherwise The value of mod is constant for every test case, mod = 100000007 . Calculate the value of K , that is, Enigma(X, i, j) modulo 100000007 , for a given value of X , i , and j . Function description Complete the solve function provided in the editor. This function takes the following 3 parameters and returns the required answer. Parameters: X : Represents the value of X in the Enigma function i : Represents the value of i in the Enigma function j : Represents the value of j in the Enigma function Input format for custom testing Note: Use this input format if you are testing against custom input or writing code in a langua