Santander interview question

write sql query, find mistake in query python functions ml concepts