Arista Networks Interview Question

Q1. Bit Manipulation (Leetcode: Med-Hard) Q2. Pointers (Code was provided, had to tell the output)