#K80922. Query Categorization
Query Categorization
Query Categorization
You are given a string representing a customer query. Your task is to categorize the query into one of the following three categories based on certain keywords:
- Order Inquiry: If the query contains at least one of the keywords \(\{order, shipment, delivery, track, purchase\}\) (case-insensitive).
- Product Inquiry: If the query does not contain any order keywords and contains at least one of the keywords \(\{price, availability, features, specification, details\}\) (case-insensitive).
- General Inquiry: If neither of the above conditions holds.
Note that if a query contains words from both the order and product sets, the order keywords take precedence.
inputFormat
The input consists of a single line containing a query string.
Constraints: The query string can include spaces and punctuation. It is guaranteed that the string is not empty.
outputFormat
Output a single line containing one of the following strings: "Order Inquiry", "Product Inquiry", or "General Inquiry", which is the category of the query.
## sampleI need to track my shipment
Order Inquiry