Correct length-biased sampling from family-size survey | Upstart Interview Question