For privacy, show emails as first letter + *** + everything from @ onwards. mask_email("rahul.verma@gmail.com") → "r***@gmail.com".
mask_email('rahul.verma@gmail.com')
→ 'r***@gmail.com'mask_email('a@x.in')
→ 'a***@x.in'Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.