https://codeanddebug.in/blog/path-with-minimum-effort/