Reduce Function In Javascript Array Methods Interview