Rakuten Interview Question

data structure,database.