Toptal Interview Question

A coding challenge about algorithms