Orpak interview question

need to fix the code and prepare for production