Epic Interview Question

Quickly learn this made-up code and provide the correct solutions following the logic.