Implement a function called determine_array_order that analyzes the order of elements in a list and returns a specific string based on the relationship between the first, second, and last elements of the list.
Functionality:
The function should determine if the first three elements of the input list are in ascending order, descending order, or if neither order applies, based on the following criteria:
If the first element is less than the second (lst[0] < lst[1]) and the second element is less than the third (lst[1] < lst[2]), then the elements are in ascending order.
If the last element is less than the first (lst[-1] < lst[0]), it will influence the determination.
The function should return one of the following strings:
'R' if the last element is less than the first element and the first two comparisons are equal.
'A' if the elements are strictly in ascending order (the first element is less than the second and the second is less than the third).
'D' if the elements are not in ascending order nor does the last element influence it negatively.
Input/Output Requirements:
Input: A list lst containing at least three numeric elements (integers or floats).
Output: A string consisting of the characters 'R', 'A', and/or 'D' based on the comparison logic defined above.
Implementation:
The solution must be written in a file called /app/solution.py. The function signature in the implementation should match the following:
python
def determine_array_order(lst):
Ensure that the implementation adheres to the specified behavior and passes any relevant edge cases such as different types of numbers (e.g., positive, negative, zero).