Oracle Interview Question

Two questions - one OOP question to determine bugs in a codebase, another a medium leetcode type question