Scotiabank Interview Question

2 easy leetcode questions + 1 easy SQL