Answer: D. He found them trying to force their way through a third floor door.
Step-by-step explanation:
Harry and Ron got lost trying to find Transfiguration class on the first day, and tried getting into one of the third floor rooms. Filch caught them, and they ended up on his bad side after that.