Completion of first problem of assignment

added solution portion to first question of Problem solving assignment.