Juniper Networks Interview Question

GCD question and MIssing Number question