Amazon Interview Question

I had to find bugs in code, write some code and take part in a work simulation