Dynamic programming
Whoooooo my god gst