Building a Logistic Regression model from scratch

#artificialintelligence 

Do you understand how does logistic regression work? If your answer is yes, I have a challenge for you to solve. Here is an extremely simple logistic problem. Here is the catch: YOU CANNOT USE ANY PREDEFINED LOGISTIC FUNCTION! Here is a small survey which I did with professionals with 1-3 years of experience in analytics industry (my sample size is 200).