import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; import java.lang.*; public class Solution { static int minimumNumber(int n, String password) { //numbers = "0123456789"; //lower_case = "abcdefghijklmnopqrstuvwxyz"; ///upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //special_characters = "!@#$%^&*()-+"; HashSet hs= new HashSet(); hs.add('!'); hs.add('@'); hs.add('#'); hs.add('$'); hs.add('%'); hs.add('^'); hs.add('&'); hs.add('*'); hs.add('('); hs.add(')'); hs.add('-'); hs.add('+'); int valid=0; int req=0; int digit=0,lower=0,upper=0,special=0; for(int i=0;i