FIS interview question

reverse of the string program, and prime numbers printing