Domanda di colloquio di Silkron

very common interview questions and very easy coding question (reverse string, prime number)