Lightspeed interview question

Explain your thought process while working on the sample design assignment?