MiTek Interview Question

Fix the program to make this work.