Canopas interview question

Oops programming related questions and basic programming algorithms.