// ZADANIE 2 Lopatin Timofey iD - 324
String maskPhone(String phone) {
String result = '';
for (int i = 0; i < phone.length - 5; i++) {
result += '*';
}
result += phone.substring(phone.length - 5);
return result;
}
void main() {
String phone = '+7 123 456-78-90';
print(maskPhone(phone));
}