GlobalLogic Interview Question

2 easy dsa question . js fundamentals