Stylight Interview Question

Two coding tasks and one architecture / systems design problem. Justify your solutions.