Pregunta de entrevista de Promenade

Problem-solving question regarding a hammer and a nail.