EY interview question

Design end to end api