Xtreme Labs Interview Question

no specific difficulty