SStride Websoft interview question

Fix this code, please.