LIS

dinamic programming