A memory puzzle