Company: Wipro_4nov
Difficulty: medium
Find Key Problem Description You are provided with 3 numbers: input1 , input2 , and input3 . Each of these are four-digit numbers within the range >= 1000 and . You are expected to find the Key using the below formula: Key = (Sum of Largest digits of all the 3 numbers) - (Sum of Smallest digits of all the 3 numbers) Assuming that the 3 numbers are passed to the given function, complete the function to find and return the Key . Examples Example 1: Input: input1 = 3521, input2 = 2452, input3 = 1352 Output: 11 Explanation: For input1 = 3521: Largest digit is 5, Smallest digit is 1. For input2 = 2452: Largest digit is 5, Smallest digit is 2. For input3 = 1352: Largest digit is 5, Smallest digit is 1. Sum of Largest digits = 5 + 5 + 5 = 15. Sum of Smallest digits = 1 + 2 + 1 = 4. Key = 15 - 4 = 11. Constraints 1000 1000 1000 import java.io.*; import java.util.*; class UserMainCode { public int findKey(int input1, int input2, int input3) { // Write code here... throw new UnsupportedOperation