Pergunta de entrevista da empresa PayPal

Some random theoretical question for a coding round