Javascript Array Concat Method Jsfiddle React Js Interview Coding