Arista Networks interview question

List implementation, bits counting, tre traversal.