IXL Learning interview question

Sent out a coding challenge using nested arrays.