Expanded solution for Question 3 in Day 1.