L3Harris Interview Question

Was asked to debug a portion of code