Scotiabank interview question

2 easy leetcode questions + 1 easy SQL