How would you solve a technical interview question that has multiple parts and becomes progressively harder?