Pergunta de entrevista da empresa Huawei Technologies

1.Write a program to find the second largest number in an array.?They will ask to optimize the program 3 to 4 times. 2.Asked to merge 2 different types of arrays based on a pattern described. 3.Binary search,Tree search and different types of searching and sorting logic and some small programs to implement them. 4.Some common puzzles and math based puzzles.