Zensar Technologies Interview Question

different functions in es6 for array