Programming Assignment2 - response

These are the two functions of exercise