Didilabs interview question

3 small coding questions