Forward Interview Question

How to approach certain cases