Amazon Interview Question

OA 1: debugging a few portions of code