Hitachi Vantara interview question

1. Write the source code for Logistic Regression