Oracle interview question

1) leetcode 2meduum and easy