Rakuten interview question

code test using java and any other dev technology