DBS Bank interview question

write directive and pipe in angular