Infosys Interview Question

Given some basic coding problems to test proficiency in Python concepts such as functions, classes and so on.