Company: Texas_26july
Difficulty: medium
Share Value Decision Problem Description Jasmine has a unique strategy for buying shares online. Every day she randomly selects N companies and checks their current share value array (where N is the number of companies). She is only interested in buying shares whose value remains unchanged when the share is read from right to left. Jasmine needs an automated program that can take the prices of N stocks as input and determine if they meet her criteria. If a stock meets her criteria, the program should output "YES", otherwise, it should output "NO". Can you help her by creating this program? Jasmine is also not interested in purchasing the shares that are in loss, which are indicated with "-"ve sign before share value. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings or prompts in the program, as these contribute to the standard output, and test cases will fail. Constraints 1 <= N <= 2000, number of companies Jasmine selected for that day. -2