Motifworks interview question

Basic programming , oops concept, and Snippest