Xylem interview question

Related to the applied post