Pergunta de entrevista da empresa Revolut

Example of a difficult problem solved at University