Revolut Interview Question

When to use OOP and when to use functional programming