ServiceNow Interview Question

Find nearest prime number Reverse each word in the file.