Deem Interview Question

Very complex augorithm question