Scala Array String Join Typescript Interview