leetle

Daily challenge for 2025-03-25

84. Return the Last Element of a List

Write a function solve that returns the last element of a list, or null if the list is empty.

Example:
Input: [1, 2, 3, 4]
Output: 4

Run this challenge interactively in Python or JavaScript when the app loads.