Update 04-basic-declarations-and-definitions.md

Reverted the claimed result values of the example in the section on repeated parameters and changed the code of the example method instead.