Problem
Write an implementation of a singly linked list that contains integer elements. Add the necessary methods to allow the user to fill the list with the following numbers (5, 7, 2, 8, 9). Write a member method that checks if the list is sorted or not and returns the result.