Apple interview question

atoi c program, string reversal, command line parsing, mutex vs semaphore