Alpine Data Labs Interview Question

Nothing hard. Simple algorithms and also Scala syntax