No, we can't. This is pure simple logic, the basic stepping stone for all programmers.
Try the logic first. How would we logically go about doing this task?
If it were a real life situation, for...