javascript interview question on array

welcome to shbcf.ru