Amdocs Interview Question

Basics from the javascript & coding ques on array methods.