maskAccountNumber 🌶️🌶️🌶️ Extra
Write a method that takes one String parameter, number, and returns it with every character except the last 4 replaced by an asterisk. You may assume number.length() is at least 4.
Challenge hint: you cannot build a String of asterisks with a loop yet instead, take a substring of a String literal that is already made entirely of asterisks and long enough for any input you will see.
For example:
maskAccountNumber("1234567890123456") returns "************3456"
You cannot build a String of exactly the right number of asterisks with a loop in this unit, but you do not need to! Start from a String literal that is ALREADY all asterisks and long enough for anything you will see, like "" (20 of them), and take a substring of it.
How many characters need to be hidden? Where do the last 4 characters of number begin?