Hello, I've recently came across a question that I have two solutions for. Though I don't see how either of them can be wrong, I'm getting two different answers :( Can someone explain me why this is happening (maybe I'm doing something wrong?) and which solution is better to use.
Homework...