Syncron interview question

Database design, algorithmic question and easy coding question