Company: Pepsico_17oct
Difficulty: medium
Unaffected Characters in Reversed Stream Problem Description A company is transmitting its data to another server. To secure the data against malicious activity, they plan to reverse the data before transmitting it. They want to know how many data characters stay where they are once the data stream has been reversed. The network administrator has been tasked with ensuring the smooth transmission of the data. Write an algorithm for the network administrator that reports the number of data characters that do not change position even after the data stream is reversed. Input Format A single line containing the string dataStream , the data to be transmitted through the network. The line may be empty. Output Format Print a single integer: the number of data characters that do not change position after the data stream is reversed. If no such character exists, or the input string is empty, print 0 . Constraints 0 <= length of dataStream <= 100000 dataStream consists only of English lette