MathWorks Interview Question

1) Find an error in the given java code which removes '*' along with preceeding and succeeding characters. 2) Similar debugging codes covering basic java questions. 3) Same went with JavaScript. 4) What are storage classes in C and write a basic C program for writing a string into file. 5) Number of permutations of a word - "BANANA"