Remove runs of length at least k | Meta Interview Question