J.P. Morgan Interview Question

How do you implement custom annotations?