Mindteck Interview Question

python logics and data stactures