Pregunta de entrevista de PRDXN

prime no, merge and sort array, GCD, reverse string without using the inbuilt function