Cracker Barrel interview question

Pretty standard stuff