Digitize Interview Question

A simple array based leetcode-like whiteboard problem.