Veeva Systems Interview Question

Q. A leetcode hard problem