Veeva Systems interview question

*Exercise* What is another way you could solve this problem?