IBM Interview Question

Two "leetcode style" questions, one algorithms based, one database.