Completes 4.2-4.5 exercises on Declared Functions

Signed-off-by: Irina Chichikova <diva.artim@gmail.com>
Completes 4.7, 4.8 exercises on Declared Functions

Signed-off-by: Irina Chichikova <diva.artim@gmail.com>