How to convert a Scala Array/List/Seq (sequence) to string with mkString
Using mkString method of Array class can convert Scala sequence (like Array, List, Seq) to a String.
mkString function can be customized with any separator string to format the output as desired.