Troubleshooting

Mind explaining the logic/difference between the two and why you say that one is correct?