Problem
Write a Spark code to find users having same or mirror images of DNA in the file stored in HDFS.
Dataset
The file is located at
/data/mr/dna/dna.txt
Sample Output
Output file will contain the users having same or mirror DNA
['User5', 'User3']
['User4', 'User2', 'User1']