Makersite interview question

Show some code and asked to fix it