Report question

Question: Accessing the next element in list to compare in Scala