Question d’entretien chez Google

Question involves general looping in the first. Second, i had to implement a simple class structure and a member function.