EAI Technologies interview question

1) Write a function to check whether a number is a prime number. 2) Write a function to reverse a string 3) basic if else loop question (remember order of the loop matters) 4) 2 multiple choice question about core java which was very simple.