IBM interview question

1 leetcode question and one sql database question