Oracle Interview Question

introductions and hacker rank problem directly