Thoughtworks interview question

mostly object oriented questions