Rakuten Interview Question

code test using java and any other dev technology