"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 01:02:05.158842
"""

```python
from typing import Dict, List


class ReasoningEngine:
    """
    A simple reasoning engine that helps in solving problems by breaking them down into smaller tasks.
    This implementation focuses on a specific problem: determining whether an input list is sorted or not.
    """

    def __init__(self):
        pass

    def is_sorted(self, elements: List[int]) -> bool:
        """
        Determines if the given list of integers is sorted in non-decreasing order.

        :param elements: A list of integers to be checked for sorting.
        :return: True if the list is sorted, False otherwise.
        """
        if not elements:  # An empty list or a single-element list is considered sorted
            return True

        for i in range(len(elements) - 1):
            if elements[i] > elements[i + 1]:
                return False

        return True


def example_usage():
    engine = ReasoningEngine()
    unsorted_list = [3, 1, 4, 2]
    sorted_list = [1, 2, 3, 4]

    print(f"Is the list {unsorted_list} sorted? {engine.is_sorted(unsorted_list)}")  # Expected: False
    print(f"Is the list {sorted_list} sorted? {engine.is_sorted(sorted_list)}")      # Expected: True


if __name__ == "__main__":
    example_usage()
```

This code provides a simple reasoning engine that checks if a given list of integers is sorted in non-decreasing order. It includes an example usage to demonstrate its functionality with both unsorted and sorted lists.