Oracle interview question

I was asked 3 medium leetcode problems