YASH Technologies interview question

String reverse,prime no.