Transfast interview question

Given code which unable to compile then ask you to resolve the issues.