Company: Thoughtworks Application developer
Difficulty: medium
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 with ensure authenticity and secrecy of its members. All the members meet once in a month at a secret club. In order to ensure the authenticity of members, each member is sent a "secret" number of 1-7 digits, 10 days before the meeting. On the meeting day, each member has to present a new "warped" number which is made by casting a warped-spell on the "secret" 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: 1001 1001 1111 1111 1331 1331 1343431 1343431 On the day of meeting, members must present the correct warped number based on the secret sent 10 days ago. The secret number can be converted to warped number by using the "warped-spell". The