Viasat Interview Question

String questions and an nth Prime number question