https://alicloud.my.id/2025/01/19/dynamic-programming-in-java/