Citi Interview Question

Figure out a bug in the code. Then write a small method.