Forward interview question

How to approach certain cases