CG Infinity interview question

Mostly on logic and data