EY Interview Question

Design pattern you have used