Synoptek Interview Question

Pseudo-code on the development problem