X Interview Question

A basic coding exercise and a basic machine learning exercise.