Veeva Systems interview question

Coding quesiton using OOPs concepts