Terrascope Interview Question

Solve a scenario-based question using Python