Write this program in Scala: Write a function that returns true if a given list of…

Write this program in Scala: Write a function that returns true
if a given list of integers is sorted in ascending order.