Validating the input to functions#

CONTENT STILL HAS TO BE ADDED…