Rakuten Interview Question

2 Java problems nd n SQL problem