Qashier interview question

Code using the existing project