An interview problem often fits in a few lines, but the boundaries still decide whether the answer is usable. State the contract before choosing a loop or map. In this round you will reuse the values, collections, method and error skills from the beginner units. Some requests need an index; others need a count or a copy. Those are different outputs even when a sample happens to make them equal. The checks use new records and boundary cases. Explain the role of a zero value, the reason you allocate a result collection and the point where an input becomes invalid. These are original practice questions, not questions taken from an employer. Work through the ordinary case and then justify why the empty case terminates safely.
Multiply both dimensions.