Concat Array Elements Javascript Interview