Pergunta de entrevista da empresa PubMatic

You need to write 2 APIs such that one API will get continuous stream of numbers & other API will return top 10 numbers when called