Block Interview Question

Find the bug in this program and fix the error