SLB interview question

Implement a2i