Javascript Array Methods Programiz Problem