RxLogix Corporation Interview Question

Interview started from Puzzles question, some probability questions to overlook the problem solving capabilities, C++ Pattern questions and then Array ques and their optimizations