Springboard interview question

Coding interviews regarding the program