I just want to know if I understand what we're supposed to do in question 1. You say we receive an infinite array, whose every cell can be either 0 or 1 or 2. The counter is the array itself, right? I mean, for counter = 0, the array is …0000. For counter = 1, the array is … 0001. For counter = 2, the array is …0002. For counter = 3, the array is …0012 (or perhaps - 0010? How do you want us to implement the counter?). etc…
Is this information correct?