grandpas hard problem