Cisco Interview Question

program to return a bit mask given a host ip address