Question d’entretien chez Bloomberg

Q. Hackerrank question involving class objects.