you give personal information string s represent email address phone number Return mask personal information rulesemail addressan email address isA consist uppercase lowercase english letter follow bythe symbol follow bythe domain consist uppercase lowercase english letter dot middle characterTo mask emailthe uppercase letter domain convert lowercase lettersthe middle letter ie letter replace 5 asterisk Phone numbera phone number format followsThe phone number contain 1013 digitsThe 10 digits local numberthe remain 03 digit begin country codeseparation character set separate digit wayTo mask phone numberremove separation charactersThe mask phone number formxxxx country code 0 digitsxxxx country code 1 digitXXXX country code 2 digitsxxxx country code 3 digitsxxxx 4 digits local number example 1input s leetcodeleetcodecomoutput leleetcodecomexplanation s email addressthe domain convert lowercase middle replace 5 asterisksExample 2input s ABqqcomOutput abqqcomexplanation s email addressthe domain convert lowercase middle replace 5 asterisksNote ab 2 character 5 asterisk middleExample 3input s 1234567890output 7890explanation s phone numberthere 10 digit local number 10 digit country code 0 digitsthu result mask number 7890 Constraintss valid email phone numberIf s email8 slength 40s consist uppercase lowercase english letter exactly symbol symbolIf s phone number10 slength 20s consist digits space symbol