Bounteous Interview Question

Java concepts, Easy level leetcode question, SQL