American Express Interview Question

How to use JavaScript array methods.