mask_card(number) that takes a card-number string number and returns it with all but the last 4 digits replaced by *, e.g. "1234567812345678" becomes "************5678". This is a typical "safe display" formatting task before printing account info to a console/log.mask_card("1234567812345678")'************5678'
Last 4 digits kept, rest masked.
mask_card("1234")'1234'
Fewer than 5 digits: nothing to mask.
Slice the last 4 characters with number[-4:].
Prefix with "*" repeated (len(number) - 4) times, but not below 0.