Pregunta de entrevista de Syncron

Database design, algorithmic question and easy coding question