Update extra-task-1.cpp

All functions are complited and tests