https://codeanddebug.in/blog/minimum-multiplications-to-reach-end-python-bfs/