JavaScript interview question on array

visit shbcf.ru