Company: wipro_7nov
Difficulty: medium
Find PIN Problem Description You are at Level-1 of a Maths game. You are provided with 4 numbers: input1 , input2 , input3 and input4 and are expected to find a secret PIN. The three numbers input1 , input2 and input3 are four-digit numbers. input4 is a positive integer number. The PIN is calculated using the following formula: PIN = ( (largest digit in input1) x (largest digit in input2) x (largest digit in input3) ) + input4 Assuming that the 4 numbers are passed to the given function, complete the function to find and return the PIN. Examples Example 1: Input: input1 = 3521, input2 = 2452, input3 = 1352, input4 = 38 Output: 163 Explanation: The largest digit in input1 (3521) is 5. The largest digit in input2 (2452) is 5. The largest digit in input3 (1352) is 5. Therefore, PIN = (5 x 5 x 5) + 38 = 125 + 38 = 163. Constraints 1000 1000 1000 input4 is a positive integer. import java.io.*; import java.util.*; class UserMainCode { public int findPIN(int input1,int input2,int input3,int i