Qualcomm interview question

c code for atoi conversion, probability puzzle, array vs linked list