Monite interview question

Code review to identify and resolve some issues