X Interview Question

Debug code and fix it on a online tool which is not great for debugging.