Turn Array Into String Typescript Map Object React Js Interview