Company: thoughtworks_9oct
Difficulty: medium
Warped Spell Problem Description You are a part of the World of Wizards - a global society of magicians. It's your task to create a "warped-spell" that helps the society ensure the authenticity and secrecy of its members. All members meet once a month at a secret club. To ensure authenticity, each member is sent a "secret" number of 1-7 digits, 10 days before the meeting. On the day of the meeting, each member has to present a new "warped" number, which is made by casting a warped-spell on the "secret" number received 10 days ago. The "warped" number must have the following magical attributes: Must be strictly of 4 - 7 digits in length (i.e., numbers from 1000 to 9999999). Must always be greater than the secret itself. Must have mirror-like characteristics as shown below. The World of Wizards needs you to come up with the exact workings of the spell. They already have a magic wand that can do this, but they need your help to upload the spell to get warped numbers from any secret number