Carrier Interview Question

Reverse string, Find prime numbers