Write an example for the dynamic programming section that covers how to find the Kth largest `foo` where `foo` has an arbitrary, but testable definition.