Fast Enterprises Interview Question

Coding question: write function isPrime and explain your process