ADP interview question

How to handle different difficulties