Zycus interview question

Debug the code and find the gaps in coding