this is a password validation code in this when you run this program first he ask you to your name and second this one ask you to your password if your password is matched anywhere in password by your name then this told your password is matching by your name if this criteria is passed then if you give only numbers then this told you Weak password please enter minimum two upper case letter and special char and again ask you to password until he got minimum two numbers and two words and two special char and also two uppercase letter