Prodapt Solutions Interview Question

they asked me write a Machine Learning algorithm, But for other students it's a simple coding problem