Skip to main content

Problem Statement

A software company is launching a secure employee portal where employees can access confidential company information. To protect user accounts from unauthorized access, the company has defined the following password policy:
  • Password length must be between 8 and 15 characters.
  • Password must contain at least one uppercase letter (A–Z).
  • Password must contain at least one special character (such as @, #, $, %, &, *, etc.).
If the password satisfies all the above conditions, it should be accepted; otherwise, the system should display an error message.

Solution

Input

Output