Angular Minds interview question

Q. Find substring without using string func Q. Second largest number from the array. Q. Traverse an array having further objects and sub arrays Q. Reverse an array with minimum loops and statements. Q. Reverse a string sentence word wise. Q. Change the first letter of each word from the string. Q. Pattern printing logic.