We have a function that takes a list of strings and returns the last string that contains the substring "Scala".
We have implemented an additional error structure (already in the scope):
sealed trait Error
case object NoLines extends Error
case object NoScala extends Error
Modify the function so that, if there is no such string, the function would return NoScala, and if the list is empty, the function would return NoLines.