Arista Networks Interview Question

1. use 2 stacks to implement a queue; 2. compute the average of latest N elements;