Rayark Interview Question

coding Question how to design a system