Imagine you need to get to the kitchen. You could walk straight there, or you could take the long way around the whole house first. Both ways get you to the kitchen, but one is much shorter. Solving problems with code works the same way.
A set of steps that finishes a job is called an algorithm. The surprising part is that one job can have many different algorithms. Different sets of steps can finish the same job, and each set is a fair way to solve it.
Say a robot needs to draw a square. One way is to tell it four times to go forward and then turn. Another way is to say the whole list of eight steps one by one. Both draw a square, but the first way is shorter and easier to read.
Because there are many ways, we can ask which way is best. Some ways are shorter or faster than others. A shorter set of steps is usually easier to fix, and a faster set of steps gets the job done in less time.
The best way is not always the first way you think of. Smart coders try a solution, then look for steps they can remove or combine. Finding a simpler path is like discovering a shortcut on your walk to the kitchen.
So when you solve a problem, remember there is more than one right answer. Your job is to find a way that works, and then see if you can make it even shorter and smarter.