Akima Interview Question

I was asked to construct a class