Darco interview question

according to internal required tasks