Zennify Interview Question

Facebook style algorithmic coding challenge in javascript