Scala program to display the output in format below. : Find the missing code in the Scala program to display the output in the following format.

Output: Array[(Int, String)] = Array((4,anar), (5,applelichi), (6,bananagrapes), (7,oranges))

Program

val a = sc.parallelize(List("apple","banana","oranges","grapes","lichi","anar"))

val b = a.map(x =>(x.length,x))

<Write your code>