Flexport Interview Question

coding part is something like checkerboard