Rakuten interview question

Nothing was difficult