Object Oriented Programming Python Exercises Hackerrank Problem