ServiceNow Interview Question

coding question was leetcode easy about arrays, OOP, Java vs. JavaScript