Copia Global Interview Question

Coding algorith challenge in python