Quatt Interview Question

I did a Pair program coding