Bounteous interview question

Java concepts, Easy level leetcode question, SQL