using System.Collections.Generic;
public static void Main()
Console.WriteLine("Validate strong password");
HashSet<char> specialCharacters = new HashSet<char>() { '.', '?', '=', '@', '_' };
if (password.Any(char.IsLower) &&
password.Any(char.IsUpper) &&
password.Any(char.IsDigit) &&
password.Any(specialCharacters.Contains))
Console.WriteLine("Contraseña valida!!");
Console.WriteLine("Contraseña no cumple las condiciones");