Problem Statement
Pointing to a photo, Raj said, “She is the daughter of my grandfather’s only son.” How is the girl related to Raj?
Explanation
‘Grandfather’s only son’ must be Raj’s father (assuming traditional terms; if Raj is male). The girl is the daughter of Raj’s father, i.e., Raj’s sister.
Code Solution
SolutionRead Only
GF’s only son = father ⇒ daughter ⇒ sister
Practice Sets
This question appears in the following practice sets:
