Revolut Interview Question

Example of a difficult problem solved at University