Home365 interview question

make an unfinished code working in 1.5 hours