ByteDance interview question

to design an API using any language you want