Domanda di colloquio di calm.io

What are system calls? if any program fails how can I debug that program in OS level as well as using some debugger?