SPAN Interview Question

There was a mini project type assignment based on given ML data.