Business requirement

A simple product viewer should let the user enter a position and display the product stored at that position in the list.

  1. Create a Product structure with Name and Price and prepare a list with at least five products.
  2. Accept a user-facing position starting from 1.
  3. Convert the entered position to a zero-based list index before reading the item.
  4. Use the list index to display the selected product name and price.
  5. Show a validation message when the position is below 1 or greater than the list length.