Price Gregory interview question

Nothing too difficult really.