Complete the method given below.
Given a credit card number card_number
as input string, the method should delete any spaces if they exist, and then return the remaining credit card number with only the last 4 digits displayed and the rest masked with *
.
In order to solve this problem you would need to use rjust
. To see how rjust
works click here.