Company: Mahindra Graduate engineer_10april
Difficulty: medium
During account registration, users enter their Date of Birth (DOB) in the format DD/MM/YYYY. Your task is to validate the given DOB string and generate a 6-character user identifier. If the DOB is valid, print the identifier in the format DDMMYY (day + month + last two digits of year). If the DOB is invalid, print "Invalid Date". Read the input from STDIN and print the output to STDOUT. Do not print arbitrary strings anywhere in the program, as these contribute to the output and test cases will fail. Constraints: i. dob must always have a length of exactly 10 characters (in the format DD/MM/YYYY), including the slashes. ii. The day (DD) should be between 01 and 31. iii. The month (MM) should be between 01 and 12. iv. The year (YYYY) should be a 4-digit number between 1000 and 9999. v. If the month is February, ensure the day is valid (between 01 and 29 for a leap year or between 01 and 28 for a non-leap year). Input Format: The only line of input will consist of a string dob, represent