Independent solution to countdown problem