Microsoft interview question

Q1) Water Jug Problem Q2)Class Scheduling problem