Lightspeed Interview Question

Theoretical python Code review of given scripts