ByteDance Interview Question

to design an API using any language you want