Digit Insurance Interview Question

write custom pipe in Angular.