Implement a Single Linked List data structure that supports next operations:
Empty - Checks if list is empty. Return true or false.
addFirst - Add element to the start of a list.
addLast - Add element to the end of a list.
removeFirst - Remove element from the start of a list.
removeLast - Remove element from the end of a list.
size - Return the number of elements in a list.
Print - Print in one line the elements of a list.
Write the code according to the next interface: