Company: Wells Fargo
Difficulty: medium
SHL - Secret Code Encryption The current selected programming language is C++14. We emphasize the submission of a fully working code over partially correct but efficient code. Once submitted, you cannot review this problem again. You can use cout to debug your code. The cout may not work in case of syntax/runtime error. The version of GCC being used is 5.5.0. An employee has to send a secret code S to their boss. They design a method to encrypt the code using two key values N and M . The formula that they use to develop the encrypted code is shown below: (((S % 10) N ) M ) % 1000000007 Write an algorithm to help the employee encrypt the code. Input Format The input consists of: An integer, secretCode , representing the secret code (S). An integer, firstKey , representing the first key value (N). An integer, secondKey , representing the second key value (M). Output Format Print an integer representing the code encrypted by the employee. Constraints 1 ≤ secretCode ≤ 10 9 0 ≤ firstKey , s