Business requirement
A simple product viewer should let the user enter a position and display the product stored at that position in the list.
- Create a Product structure with Name and Price and prepare a list with at least five products.
- Accept a user-facing position starting from 1.
- Convert the entered position to a zero-based list index before reading the item.
- Use the list index to display the selected product name and price.
- Show a validation message when the position is below 1 or greater than the list length.