BluePi interview question

Converting a two dimensional array into Arraylist