Aptiv interview question

2's complement c language code