profits[0] ~ profits[lastIndex]까지만 고려했을 때의 정답 단, profits[lastIndex]는 무조건 마지막으로 사용한다. @param lastIndex 마지막으로 근무할 날의 인덱스 @return 'lastIndex'번째 날에 마지막으로 근무 했을 때 얻을 수 있는 최대 인센티브
(int lastIndex)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected