I came across this question in one of the system design interview for Amazon. But not sure what is the best way to approach this and possible solutions. Any help would be appreciated.