Juniper Networks Interview Question

Second coding challenge was on python.