Next Capital interview question

Exercises to test your thinking mostly