Company: Wipro_14nov
Difficulty: medium
Problem Description Your friend provided you with an encoded set of numbers. He expects you to decode it using the 555 Decoder algorithm and find the result as mentioned below. To decode & find the result, you must perform the below 3 steps on the given set of numbers. Step 1: Each digit of each number present in the array should be subtracted from 5. If the result of this subtraction is negative, the absolute value (non-negative value) should be considered. The digits of the results are then concatenated to form a new number. Step 2: Each number of the resultant array generated in Step 1 should be reduced to a single digit by performing a continuous digit sum on it. Note: digitSum is the process of adding all digits of a given number. For example, DigitSum of 9758 = 9+7+5+8 = 29. "Continuous digitsum" means to continue performing digitSum on the result until we reach a single-digit result. For example, Continuous DigitSum of 9758 = 9+7+5+8 = 29 = 2+9 = 11 = 1+1 = 2. Step 3: The el