Revolut interview question

Example of a difficult problem solved at University