Machstatz Interview Question

A python problem statement