Oracle Interview Question

I was asked 3 medium leetcode problems