5 XP challenge

Is the Middle Between the Ends

very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve

Task
Your mission

values contains exactly three integers from -100 to 100. Return true when values[1] is between values[0] and values[2], including either endpoint.

Examples

InputReturn
values = [1,3,5]true
values = [5,3,1]true

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.