McKinley, Inc. interview question

Basic logics like sorting searching reverse and some key concepts