Juniper Networks interview question

GCD question and MIssing Number question