Javascript Array Concat Method Sql Interview