How to create RDD in spark – Interview question