Found a really good video explaining the algo step by step Do watch if stuck https://youtu.be/WRXCwgdni90