A card problem that uses De Jong's and function optimization