Urban Company interview question

already explained