Pergunta de entrevista da empresa Thoughtworks

One question was count number of character occurence , another one removing characters from second string in first string. Third finding a number is prime or not and such type of questions