Create assignment-2.c

Copy and pasted extensively comment source code from local storage.