Find the N-th Value After K Seconds — CaffeCode