Carrier interview question

Reverse string, Find prime numbers