In his mid-30s, when a neurosurgeon receives the grim diagnosis of terminal lung cancer he decides to write a memoir