Company: SHL_17oct
Difficulty: medium
Unchanged 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. They want to know the number of data characters that do not change position even after the data stream is reversed. The network administrator has been tasked with ensuring the smooth transmission of the data. Write an algorithm for the network administrator to help him find the number of data characters that do not change position even after the data stream is reversed. Input The input consists of a string dataStream representing the data to be transmitted through the network (N). Output Print an integer representing the number of data characters that do not change position even after the data stream is reversed. If no such character is found or the input string is empty then print 0. Examples Example 1: Input: dataStream = "alphxddida" Output: 4 Explanation: The original data