Javascript String Array Functions In React Js Interview Tasks