Daily challenge for 2026-09-26
634. Final Plate on Stack
You are washing dishes. You are given an array of strings plates. If a string is "wash", you remove the top plate from your stack (if the stack is not empty). Otherwise, the string represents the color of a new plate added to the top of the stack. Return the color of the plate at the top of the stack when you are done. If the stack is empty, return "none".
Example:Input: plates = ["red", "blue", "wash", "green"]Output: "green"
Run this challenge interactively in Python or JavaScript when the app loads.