FIS Interview Question

reverse of the string program, and prime numbers printing