Patch Infotech Interview Question

Prime number and Array sorting