Ryan interview question

Some off abstract logic question.