Kaprekar constant, also known as 6174, is a constant that arises when we take any 4-digit number (using at least two different digits) and form the largest and smallest number from it's digits, and ...