The amount of deflection shown in the magnetic compass depends on how good conductor a particular liquid is. Among the given liquids, distilled water is the poorest conductor and mercury is the best conductor of electricity. Hence, the correct order would be:
Mercury > Lemon juice > Tap water > Distilled water