Capgemini Interview Question

boats streams,time speed , distance, ages, reasoning prime numbers coding