In Time Tec interview question

Basic oops questions on python