Cheapest Item
items has columns name (text) and price (number). Return the name of the item with the lowest price. No two items share the lowest price.
Example 1
items {"name":["pen","ink","pad"],"price":[2.5,4.0,1.25]}
returns "pad"
The pad costs only 1.25.
Constraints
- At least one item
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.