Amdocs interview question

how to debug using GDB