Abbott interview question

Code Debugging and Algorithm based questions.