Kaprekar Constant
Check number of iterations required to reach 6174 with detailed steps.
Explanation: Kaprekar's constant is the number 6174, which is the result of a mathematical algorithm that involves
repeatedly subtracting the smallest number from the largest number that can be made from a set of digits.
The algorithm is named after the Indian mathematician D. R. Kaprekar who discovered it in 1949.
We shall add more programs performing interesting functions later on...