Nagarro Interview Question

Nth Prime Number , Max frequency from array , encrypt text with replacing each letter by condition.