Slab (CA) Interview Question

Basic front-end programming question/problem to solve.