Viasat Interview Question

Foo bar question involving if-statements.