A strange comet-like object discovered over five years ago was the first known visitor from another solar system. Its movement was so odd that scientists struggled to explain it, until now.