Polaris Wireless Interview Question

Write a program in Python