Company: Texas Instruments
Difficulty: easy
Jasmine has a unique strategy for buying shares online. Each day, she randomly selects `x` companies and checks their current share values. She wants to buy only those shares whose value remains the same when read from right to left. A share is considered acceptable only if its value is non-negative and palindromic. If a share value has a `-` sign, it means the share is in loss, and Jasmine is not interested in buying it. For each share value, output `YES` if it meets Jasmine's criteria; otherwise, output `NO`. **Example 1:** **Input:** ``` 2 313 -11 ``` **Output:** ``` YES NO ``` **Explanation:** - There are `2` companies. - The first company's share value is `313`. Reading it from right to left still gives `313`, and it is not in loss, so `YES` is printed. - The second company's share value is `-11`. Reading the digits from right to left gives `11`, but the negative sign means it is in loss, so Jasmine is not interested and `NO` is printed. **Example 2:** **Input:** ``` 2 12 22 ``` *