Arista Networks interview question

1. find missing number in sorted elements 2. general c++ coding and debugging