HCLTech interview question

How gradient descend algorithm work ?