Rakuten interview question

Technical stuff about data structure